import {
  get,
  post,
  reqDelete
} from '@/utils/axios'

// export function drugUseInfoExport(params) {
//   return post('/drug-use-info/info/export', params, {
//     responseType: 'blob'
//   })
// }

// 年份下拉框
export function listYsDictionary(params) {
  return get('/ysDictionary/listYsDictionary', params)
}

/**
 * 预算科目管理
 */
// 预算科目
export function listYsSubject(params) {
  return post('/ysSubject/listYsSubject', params)
}

// 预算部门
export function listYsDepartment(params) {
  return post('/ysDepartment/listYsDepartment', params)
}

// 列表
export function listYsSubjectPage(params) {
  return post('/ysSubject/listYsSubjectPage', params)
}

// 新增 编辑
export function saveOrUpdateYsSubject(params) {
  return post('/ysSubject/saveOrUpdateYsSubject', params)
}

// 删除
export function removeYsSubjectById(params) {
  return reqDelete('/ysSubject/removeYsSubjectById', params)
}

/**
 * 业务职能科目对照
 */
// 列表
export function listYsBusinessSubjectPage(params) {
  return post('/ysBusinessSubject/listYsBusinessSubjectPage', params)
}

// 编辑
export function updateYsBusinessSubject(params) {
  return post('/ysBusinessSubject/updateYsBusinessSubject', params)
}

// 删除
export function removeYsBusinessSubject(params) {
  return reqDelete('/ysBusinessSubject/removeYsBusinessSubject', params)
}

// 业务和管理对照用友下拉数据
export function listYySubject(params) {
  return get('/ysSubject/listYySubject', params)
}

// 预算科目下拉数据
export function listYsSubject4(params) {
  return get('/ysSubject/listYsSubject4', params)
}
// 继承
export function inheritBusiness(params) {
  return get('/ysBusinessSubject/inheritBusiness', params)
}

// 采集用友科目数据
export function collectSubjectData(params) {
  return get('/ysEtlAccount/collectSubjectData', params)
}

// 下载模板
export function exportExcelYsBusinessSubjectDemo(params) {
  return post('/ysBusinessSubject/exportExcelYsBusinessSubjectDemo', params, {
    responseType: 'blob'
  })
}

// 导出
export function exportExcelYsBusinessSubject(params) {
  return post('/ysBusinessSubject/exportExcelYsBusinessSubject', params, {
    responseType: 'blob'
  })
}
// 导入
export function importExcelYsBusinessSubject(params) {
  return post('/ysBusinessSubject/importExcelYsBusinessSubject', params, {
    headers: { 'Content-Type': 'multipart/form-data' },
    responseType: 'blob'
  })
}

